package com.cm.domain;


    public class SuShu {
    public static void main(String[]args) {
        int count=0;
        for(int i = 2;i <= 20000;i++) {
            for(int k = 2; k <= i; k++) {

                if(i % k == 0 && k != i) {
                    break;
                }

                if(i % k == 0 && k == i) {
                    System.out.print(i + "\t");
                    count++;
                    if(count % 5 == 0) {
                        System.out.println();
                    }
                }
            }
        }
    }
}


